package org.netty.demo.lihh.notice.domain;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.netty.demo.lihh.notice.enumeration.ClientStateEnum;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ServerMsgProtocol {
  @JSONField(deserializeUsing = ClientStateEnum.class)
  private ClientStateEnum state;
  // 通信消息
  private String msg;
  // 用户 凭证
  private String tk;
  // socket channel id
  private String channelId;
}
